<div class="layui-container">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md8">
            {if condition="!(input('page')>1)"}
            <div class="fly-panel">
                <div class="fly-panel-title fly-filter">
                    <a>置顶</a>
                    <a href="#signin" class="layui-hide-sm layui-show-xs-block fly-right" id="LAY_goSignin"
                       style="color: #FF5722;">去签到</a></div>
                <ul class="fly-list">
                    {foreach $top as $v}
                    <li>
                        <a href="{:url('index/user/index',['uid'=>$v.uid])}" class="fly-avatar">
                            <img src="/think/public{$v.face}" alt="空白处"></a>
                        <h2>
                            <a class="layui-badge">{$v.name}</a>
                            <a href="{:url('index/question/index',['qid'=>$v.qid]);}">{$v.title}</a></h2>
                        <div class="fly-list-info">
                            <a href="{:url('index/user/index',['uid'=>$v.uid])}" link>
                                <cite>{$v.nickname}</cite></a>
                            <span>{:Ftime($v['ctime'])}</span>
                            <span class="fly-list-kiss layui-hide-xs" title="悬赏飞吻">
                                        <i class="iconfont icon-kiss"></i>{$v.kiss}</span>
                            <span class="fly-list-nums">
                                        <i class="iconfont icon-pinglun1" title="回答"></i>0</span>
                        </div>
                        <div class="fly-list-badge"></div>
                    </li>
                    {/foreach}
                </ul>
            </div>
            {/if}
            <div class="fly-panel" style="margin-bottom: 0;">
                <div class="fly-panel-title fly-filter">
                    <a href="{:url('index/question/qlist',['cid'=>input('cid')])}" class="layui-this">综合</a>
                    <span class="fly-mid"></span>
                    <a href="{:url('index/question/qlist',['cid'=>input('cid'),'ststus'=>'notover']);}">未结</a>
                    <span class="fly-mid"></span>
                    <a href="{:url('index/question/qlist',['cid'=>input('cid'),'status'=>'over']);}">已结</a>
                    <span class="fly-mid"></span>
                    <a href="{:url('index/question/qlist',['cid'=>input('cid'),'status'=>'jing']);}">精华</a></div>
                <ul class="fly-list">
                    {foreach $data as $v}
                    <li>
                        <a href="{:url('index/user/index',['uid'=>$v.uid])}" class="fly-avatar">
                            <img src="/think/public{$v.face}" alt="空白处"></a>
                        <h2>
                            <a class="layui-badge">{$v.name}</a>
                            <a href="{:url('index/question/index',['qid'=>$v.qid]);}">{$v.title}</a></h2>
                        <div class="fly-list-info">
                            <a href="{:url('index/user/index',['uid'=>$v.uid])}" link>
                                <cite>{$v.nickname}</cite></a>
                            <span>{:Ftime($v['ctime'])}</span>
                            <span class="fly-list-kiss layui-hide-xs" title="悬赏飞吻">
                                        <i class="iconfont icon-kiss"></i>{$v.kiss}</span>
                            <span class="fly-list-nums">
                                        <i class="iconfont icon-pinglun1" title="回答"></i>0</span>
                        </div>
                        <div class="fly-list-badge"></div>
                    </li>
                    {/foreach}
                </ul>
                <div class ='fenye' style="text-align: center;">
                    {$data->render()}
                </div>
            </div>
        </div>
        <div class="layui-col-md4">
            <div class="fly-panel">
                <h3 class="fly-panel-title">温馨通道</h3>
                <ul class="fly-panel-main fly-list-static">
                    {foreach $wenxin as $v}
                    <li>
                        <?php $qid = $v['qid'] ?>
                        <a href="{:url('index/question/index',['qid'=>$v.qid]);}" target="_blank">{$v.title}
                        </a>
                    </li>
                    {/foreach}
                </ul>
            </div>
            <div class="fly-panel fly-signin">
                <div class="fly-panel-title">签到
                    <i class="fly-mid"></i>
                    <a href="javascript:;" class="fly-link" id="LAY_signinHelp">说明</a>
                    <i class="fly-mid"></i>
                    <a href="javascript:;" class="fly-link" id="LAY_signinTop">活跃榜
                        <span class="layui-badge-dot"></span></a>
                    <span class="fly-signin-days"></span>
                </div>
                <div class="fly-panel-main fly-signin-main">
                    <button class="layui-btn layui-btn-danger" id="LAY_signin">今日签到</button>
                </div>
            </div>
            <div class="fly-panel">
                <div class="fly-panel-title">钻级赞助商
                    <span class="fly-mid"></span>
                    <a href="/jie/15697/" class="fly-link fly-joinad    ">我要加入</a></div>
                <div class="fly-panel-main" style="padding: 13px 15px;">
                    <a href="/jie/15697/" target="_blank" rel="nofollow" class="fly-zanzhu"
                       style="background-color: #393D49;">虚席以待</a></div>
            </div>
            <div class="fly-panel fly-rank fly-rank-reply" id="LAY_replyRank">
                <h3 class="fly-panel-title">回贴周榜</h3>
                <dl>
                    {foreach $hotUser as $v}
                    <dd>
                        <?php $uid = $v['uid'] ?>
                        <a href={:url("/index/user/index/uid/$uid")}>
                        <img src="/think/public{$v.face}">
                        <cite>{$v.nickname}</cite>
                        <i>{$v.answers}次回答</i>
                        </a>
                    </dd>
                    {/foreach}
                </dl>
            </div>
            <dl class="fly-panel fly-list-one">
                <dt class="fly-panel-title">本周热议</dt>
                {foreach $indexHot as $k=>$v}
                <dd>
                    <a href="{:url('index/question/index',['qid'=>$v.qid]);}">{$v.title}</a>
                    <span>
                                <i class="iconfont icon-pinglun1"></i>{$v.answer_num}</span>
                </dd>
                {/foreach}

            </dl>
            <div class="fly-panel">
                <div class="fly-panel-title">官方产品</div>
                <div class="fly-panel-main">
                    <a href="http://layim.layui.com/?from=fly" target="_blank" class="fly-zanzhu"
                       time-limit="2017.09.25-2099.01.01" style="background-color: #5FB878;">LayIM 3.0 - layui 旗舰之作</a>
                </div>
            </div>
            <div class="fly-panel" style="padding: 20px 0; text-align: center;">
                <img src="//cdn.layui.com/upload/2017_8/168_1501894831075_19619.jpg" style="max-width: 100%;"
                     alt="layui">
                <p style="position: relative; color: #666;">微信扫码关注 layui 公众号</p></div>
            <div class="fly-panel fly-link">
                <h3 class="fly-panel-title">友情链接</h3>
                <dl class="fly-panel-main">
                    {foreach $links as $v}
                    <dd>
                        <a href="{$v.url}" target="_blank">{$v.name}</a>
                    <dd>

                    {/foreach}
                </dl>
            </div>
        </div>
    </div>
</div>